home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Technotools
/
Technotools (Chestnut CD-ROM)(1993).ISO
/
lantools
/
bkup
/
s_backup.bat
< prev
next >
Wrap
DOS Batch File
|
1990-07-27
|
2KB
|
61 lines
:... S_BACKUP.BAT, Craig MacPherson
: This file is called from Saber menu. It does the following
: - Checks the status to make sure no other jobs exist from this user.
: - Preps the users workstation for the backup process
: - creates the users backup job for the backup processor.
:
: Variables passed from the menu system:
: %1 = Drive
: %2 = ALL or MOD
:
:... Update users workstation with correct system time and date and set z: drive
systime >>nul:
cd z:\backups
:... Check the users backup status
n:
cd n:\backups\backup.jbs
if not exist %userid%.bat goto CONTINUE
if exist %userid%.que goto NOT_RUNNING_YET
:JOB_ALREADY_IN_PROGRESS
echo.
echo A backup job is already in progress for this workstation
echo returning to menu....
be delay 50
goto end
:NOT_RUNNING_YET
echo.
echo A backup job already exists for this workstation
be ask "do you want to continue anyway? (y/n)" yn DEF=n T=15
if errorlevel 2 goto END
del %userid%.bat>>nul:
del %userid%.que>>nul:
:CONTINUE
:... Load Map Assist on the users workstation. Error check in case of failure.
: Note use of absolute network address of backup server.
MAR - >>nul:
MAR %1 rw=4-54 /T/C >>nul:
if not errorlevel 1 goto CREATE_JOB
smessage "Problem initializing backup - Contact Client Services"
goto END
:CREATE_JOB
:... Place start of job message in users detailed history log.
call z:b_soj.bat %userid%
:... Create the batch file for this users station
: to be processed by the backup server
echo Put this user in the que>z:\backups\backup.jbs\%userid%.que
echo call %SCRIPTS%b_proces.bat %USERID% %1 %2 >z:\backups\backup.jbs\%userid%.bat
:... Give user an info message
smessage "Backup Accepted, Backup Server will backup your station A.S.A.P"
:END